// IpFrame.h : interface of the CInPlaceFrame class
//

#if !defined(AFX_IPFRAME_H__C07975D3_FFE8_11D7_B08F_0002553118A0__INCLUDED_)
#define AFX_IPFRAME_H__C07975D3_FFE8_11D7_B08F_0002553118A0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CInPlaceFrame : public COleDocIPFrameWnd
{
	DECLARE_DYNCREATE(CInPlaceFrame)
public:
	CInPlaceFrame();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInPlaceFrame)
	public:
	virtual BOOL OnCreateControlBars(CFrameWnd* pWndFrame, CFrameWnd* pWndDoc);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL
	virtual HACCEL GetDefaultAccelerator();

// Implementation
public:
	virtual void OnRequestPositionChange(LPCRECT lpRect);
	virtual ~CInPlaceFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	CBitmap m_bmpMRUChars;
	wchar_t m_mruChars[20];
	CImageList m_ilMRUChars;
	CImageList m_ilToolBar;
	CToolBox m_wndToolBox;
	CColorBox m_wndColorBox;
	CCharBox m_wndCharBox;
	CMyToolBar m_wndCharBar;
	CMyToolBar    m_wndToolBar;
	COleDropTarget	m_dropTarget;
	COleResizeBar   m_wndResizeBar;
	HACCEL m_hAccelTab;

	void DrawMruCharBar();
	void DockControlBarLeftOf(CFrameWnd *pFrameWnd, CControlBar* Bar, CControlBar* tbRight);

// Generated message map functions
protected:
	virtual void RecalcLayout(BOOL bNotify = TRUE);
	//{{AFX_MSG(CInPlaceFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnViewCharbox();
	afx_msg void OnViewGrid();
	afx_msg void OnViewToolbox();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_IPFRAME_H__C07975D3_FFE8_11D7_B08F_0002553118A0__INCLUDED_)
